<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin-top: -3.92%;">
    <!-- Bắt đầu navbar -->
 
<?php
    $getroutename = Route::currentRouteName();
?>
<div class="col-xs-0 col-sm-2 col-md-1 col-lg-1">  
            </div>
<div class="col-xs-12 col-sm-12 col-sm-12 col-md-10 col-lg-10">
    <div class="panel" style="background: none;">
        <div style="font-size:16px;color:white;">
            <div class="m-navbar navbar " >
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-inverse-collapse">
                        <i class="fa fa-bars"></i>
                    </button>
                    <a class="navbar-brand" href="<?php echo asset(''); ?>"style="font-size:16px;color:white;">Trang chủ</a>
                </div>
                <div class="navbar-collapse navbar-inverse-collapse collapse">
                        <ul class="nav navbar-nav">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="font-size:16px;">
                                Tra cứu
                                <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li> <a href="<?php echo asset('searchs/results'); ?>"style="font-size:16px;color:black">Tra cứu kết quả thi</a></li>
                                    <li><a href="<?php echo asset('searchs/certificates'); ?>"style="font-size:16px;color:black">Tra cứu văn bằng</a></li>  
                                </ul>
                            </li>
                        </ul>

                    <?php
                    if (Auth::check()) {
                        ?>
                        <ul class="nav navbar-nav">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="font-size:16px;">
                                Đăng ký
                                <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li> <a href="<?php echo asset('user-register/courses'); ?>"style="font-size:16px;color:black">Khóa học</a></li>
                                    <li><a href="<?php echo asset('user-register/schedule'); ?>"style="font-size:16px;color:black">Khóa thi</a></li>  
                                </ul>
                            </li>
                        </ul>
                        <?php
                        $chuc_nang = new Chuc_nang();
                        $count = $chuc_nang->chung_nang_quan_tri(Auth::user()->id);
                        if($count!=0){
                        ?>
                        <ul class="nav navbar-nav">
                            <li ><a href="<?php echo asset('administrator'); ?>" style="font-size:16px;color:white">Trang quản trị</a></li>
                        </ul>
                        <?php
                        }
                        ?>

                        <ul class="nav navbar-nav navbar-right">
                        <li><img src="<?php echo Auth::user()->anh_dai_dien; ?>" class="img-circle atv-user"></li>
                            <li class="dropdown">
                                
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="font-size:16px;">
                                <?php 
                                if(Auth::user()->auth_type == 'student'){
                                    echo Auth::user()->fullname;
                                }else{
                                    echo Auth::user()->ho_cb .' '. Auth::user()->ten_cb;    
                                }
                                
                                ?>
                                <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="<?php echo asset('user/infouser'); ?>" style="font-size:16px;color:black">Thông tin cá nhân</a></li>
                                    <li><a href="<?php echo asset('user/changepassword') ?>" style="font-size:16px;color:black">Đổi mật khẩu</a></li>
                                    <li><a href="<?php echo asset('user/logout'); ?>" style="font-size:16px;color:black">Đăng xuất</a></li>
                                </ul>
                            </li>
                        </ul>
                        <?php
                    }else{
                        ?>
                        <ul class="nav navbar-nav navbar-right" >
                        <li  class="dropdown" style="font-size:16px;color:white">
                            <a data-toggle="modal" data-target="#myModal-login">Đăng nhập</a>
                        </li>
                        </ul>
                    <?php
                    }
                    ?>
                    </div>
            </div>
        </div>
    </div>
</div>
 
<!-- Kết thúc navbar -->

</div>